﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LiaisonDonnees
{
    public partial class Fm_employeGrille : Form
    {
        Donnees bd;
        public Fm_employeGrille(Donnees p_bd)
        {
            InitializeComponent();
            bd = p_bd;
            bs.DataSource = bd.ObtEmployes();
            bs_service.DataSource = bd.ObtServices();
        }
        private void Fm_employeGrille_FormClosing(object sender, FormClosingEventArgs e)
        {
            employeDataGridView.EndEdit();
            bs.EndEdit();
            bs_service.EndEdit();
            bd.Sauver();
        }
    }
}
